package lab02.Test12;

/**
 * Created by mac on 2017/10/25.
 */
public class Rectangular extends Shape {
    Rectangular(){}

    @Override
    double area() {
        return length*width;
    }

    @Override
    double perimeter() {
        return (length+width)*2;
    }

}


